package com.shop2cn.iapi.member.testcase;

import java.math.BigDecimal;
import java.util.Date;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.shop2cn.iapi.member.parameter.CollectionMemberInfoBean;
import com.shop2cn.iapi.member.parameter.CreateMemberBean;
import com.shop2cn.iapi.member.parameter.MchMemberInfoDto;
import com.shop2cn.iapi.member.parameter.MchMemberListBean;
import com.shop2cn.iapi.member.parameter.SortCondition;
import com.shop2cn.iapi.member.service.MchMemberListCall;
import com.ymatou.iapi.dglogin.parameter.AccessSourceEnum;
import com.ymatou.iapi.dglogin.parameter.AppSourceEnum;
import com.ymatou.iapi.dguser.parameter.UserCreateBean;
import com.ymttest.business.service.DGUserCallService;
import com.ymttest.business.service.GodMemberService;
import com.ymttest.business.service.shenqi.GodmchManageCallService;
import com.ymttest.database.sqlwapper.godmember.GodMemberWapper;
import com.ymttest.utils.TestDataManager;
import com.ymttest.utils.YMTDateUtil;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*商家会员列表
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_MchMemberList{
	private static MchMemberListBean mchmemberlistBean;
	private static MchMemberListCall mchmemberlistCall;
	GodMemberWapper GodMemberWapper;
	private static Integer shopid ;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("商家会员列表");
	}

	@Before
	public void caseUp() {
		mchmemberlistBean=new MchMemberListBean();
		mchmemberlistCall=new MchMemberListCall();
		GodMemberWapper=new GodMemberWapper();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(mchmemberlistCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_MchMemberList_001() {
		Logger.start(true,"商家会员列表获取成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(2, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_002() {
		Logger.start(true,"不输入shopid失败");
		try {
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
//			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();					
			Logger.verifyEquals("400", mchmemberlistCall.getString("code"), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_003() {
		Logger.start(true,"不输入pageindex失败");
		try {
//			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();					
			Logger.verifyEquals("400", mchmemberlistCall.getString("code"), "验证code");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_004() {
		Logger.start(true,"不输入pagesize失败");
		try {
			mchmemberlistBean.setPageIndex(1);
//			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();					
			Logger.verifyEquals("400", mchmemberlistCall.getString("code"), "验证code");		
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_005() {
		Logger.start(true,"使用memberId条件搜索成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setMemberId(memid);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_006() {
		Logger.start(true,"使用nickName条件搜索成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setNickName(usercreateBean.getNickname());
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_007() {
		Logger.start(true,"使用mobile条件搜索成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setMobile(mobile);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_008() {
		Logger.start(true,"使用remark条件搜索成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			//设置备注
			String remark="rmk"+TestDataManager.getRandomNum(5);
			GodMemberService.SetMemberRemarkCall(shopid, memid, remark);
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setRemark(remark);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_009() {
		Logger.start(true,"使用registerBeginTime,registerEndTime条件搜索成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			
			//设置备注
			String remark="rmk"+TestDataManager.getRandomNum(5);
			GodMemberService.SetMemberRemarkCall(shopid, memid, remark);
			
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			
			Thread.sleep(1000);
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			Date rdata = GodMemberWapper.selectMemberByMemberid(memid).get(0).getRegisterTime();
			String startdata=YMTDateUtil.getFormatDateString(rdata, "yyyy-MM-dd");
			String enddata=YMTDateUtil.getBeforeOrNextDay(1, "yyyy-MM-dd");
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setRegisterBeginTime(startdata);
			mchmemberlistBean.setRegisterEndTime(enddata);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	@Ignore
	public void Tc_MchMemberList_010() {
		Logger.start(true,"使用registerEndTime条件搜索成功");
		try {
			//TODO 补全case代码
			org.junit.Assert.fail();
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	//??排序
	public void Tc_MchMemberList_011() {
		Logger.start(true,"设置sortCondition搜索排序");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			SortCondition sortCondition=new SortCondition();
			sortCondition.setSortField("orderNum");
			sortCondition.setSortMode(1);
			mchmemberlistBean.setSortCondition(sortCondition);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(2, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().get(0);
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");
			sortCondition.setSortMode(0);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(2, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			m = mchmemberlistCall.getMchMemberInfoDto().get(0);
			Logger.verifyEquals(m.getOrderNum(),0, "验证getOrderNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_012() {
		Logger.start(true,"使用尽可能多的搜索条件搜索出精确数据");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			
			//设置备注
			String remark="rmk"+TestDataManager.getRandomNum(5);
			GodMemberService.SetMemberRemarkCall(shopid, memid, remark);
			
			mchmemberlistBean.setMemberId(memid);
			mchmemberlistBean.setMobile(mobile);
			mchmemberlistBean.setRemark(remark);
			mchmemberlistBean.setNickName(usercreateBean.getNickname());
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_013() {
		Logger.start(true,"积分-购买次数-累计消费金额-上次消费时间结果查询");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			usercreateBean.setNickname("T"+TestDataManager.getRandomNum(5));
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			
			orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			sqOrderRmbAmount="2000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			
			//设置备注
			String remark="rmk"+TestDataManager.getRandomNum(5);
			GodMemberService.SetMemberRemarkCall(shopid, memid, remark);
			
			mchmemberlistBean.setMemberId(memid);
			mchmemberlistBean.setMobile(mobile);
			mchmemberlistBean.setRemark(remark);
			mchmemberlistBean.setNickName(usercreateBean.getNickname());
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( 3000).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),2, "验证getOrderNum");	
			Logger.verifyEquals(m.getTotalPoints(),10+50+100, "验证getOrderNum");	
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_MchMemberList_014() {
		Logger.start(true,"商家会员列表获取成功-开启邀请制-过滤没有手机号的会员");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			GodMemberWapper.updateMchmemberConfigNeedInvitationCode(shopid, true);
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			//创建一个新会员X2
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			String memid2 = GodMemberService.creatememberCall(createMem2);
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			//只有一个用户-没有手机的被过滤了
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_MchMemberList_015() {
		Logger.start(true,"商家会员列表获取成功-部分退款，不扣总的消费金额");
		try {
			shopid= GodmchManageCallService.CreateSellerMch();
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			Long orderid1=Long.valueOf(TestDataManager.getRandomNum(10));
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			String sqOrderRmbAmount="101";
			//下两单，一单101，一单200、然后退款101
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			GodMemberService.processOrderPay(userId, shopid, orderid1, "200");
			GodMemberService.processOrderCancelPay(userId, shopid, orderid,10);
			
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistBean.setMemberId(memid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_MchMemberList_016() {
		Logger.start(true,"使用memberId条件搜索-返回对应平台成功");
		try {
			//新建商家开启积分
			shopid= GodmchManageCallService.CreateSellerMch();
			GodMemberService.mchSetOpenPoints(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			//创建一个新会员
			UserCreateBean usercreateBean = DGUserCallService.initUsercreateBean();
			int userId = DGUserCallService.UserCreateCall(usercreateBean);
			CreateMemberBean createMem = GodMemberService.initCreateMemberBean(shopid,userId,usercreateBean.getOpenId());
			createMem.setOpenId(usercreateBean.getOpenId());
			String memid = GodMemberService.creatememberCall(createMem);
			
			UserCreateBean usercreateBean2 = DGUserCallService.initUsercreateBean();
			usercreateBean2.setAppSource(DGUserCallService.getAppSourceCode(4));
			int userId2 = DGUserCallService.UserCreateCall(usercreateBean2);
			CreateMemberBean createMem2 = GodMemberService.initCreateMemberBean(shopid,userId2,usercreateBean2.getOpenId());
			createMem2.setOpenId(usercreateBean2.getOpenId());
			createMem2.setAccessSource(4);
			String memid2 = GodMemberService.creatememberCall(createMem2);
			
			UserCreateBean usercreateBean3 = DGUserCallService.initUsercreateBean();
			usercreateBean3.setAppSource(DGUserCallService.getAppSourceCode(6));
			int userId3= DGUserCallService.UserCreateCall(usercreateBean3);
			CreateMemberBean createMem3 = GodMemberService.initCreateMemberBean(shopid,userId3,usercreateBean3.getOpenId());
			createMem3.setOpenId(usercreateBean3.getOpenId());
			createMem3.setAccessSource(6);
			String memid3 = GodMemberService.creatememberCall(createMem3);
			
			
			//绑定手机
			String mobile=TestDataManager.getPhoneNum();
			GodMemberService.bindMobile(shopid, userId, mobile);
			//给积分
			GodMemberService.setCollectionMobile(shopid, true);
			GodMemberService.MchSetOpenPointsRule(GodMemberService.initMchSetOpenPointsRuleBean(shopid));
			Integer points=10;
			GodMemberService.sendPoints(memid, shopid, points);
			//来一笔支付
			Long orderid=Long.valueOf(TestDataManager.getRandomNum(10));
			String sqOrderRmbAmount="1000";
			GodMemberService.processOrderPay(userId, shopid, orderid, sqOrderRmbAmount);
			CollectionMemberInfoBean collectionmemberinfoBean=new CollectionMemberInfoBean();
			collectionmemberinfoBean.setUserId(userId);
			collectionmemberinfoBean.setRealName("rname");
			collectionmemberinfoBean.setSex("男");
			collectionmemberinfoBean.setShopId(shopid);
			collectionmemberinfoBean.setWechatName("wxname");
			GodMemberService.collectionmemberinfoCall(collectionmemberinfoBean);
			mchmemberlistBean.setMemberId(memid);
			mchmemberlistBean.setPageIndex(1);
			mchmemberlistBean.setPageSize(10);
			mchmemberlistBean.setShopId(shopid);
			mchmemberlistCall.setData(mchmemberlistBean);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			Logger.verifyEquals(1, mchmemberlistCall.getMchMemberInfoDto().size(), "验证搜索结果精确");
			MchMemberInfoDto m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid)).findFirst().get();
			Logger.verifyEquals(m.getMobile(), mobile, "验证mobile");
			Logger.verifyNotNull(m.getLastOrderTime(), "验证getLastOrderTime");
			Logger.verifyEquals(m.getNickName(),usercreateBean.getNickname(), "验证getNickname");
			Logger.verifyEquals(new BigDecimal( m.getOrderAmt()).setScale(2),new BigDecimal( sqOrderRmbAmount).setScale(2), "验证sqOrderRmbAmount");
			Logger.verifyEquals(m.getOrderNum(),1, "验证getOrderNum");	
			Logger.verifyEquals(m.getPlatform().toUpperCase(),AccessSourceEnum.parse(1).getMessage(), "验证getPlatform");	
			mchmemberlistBean.setMemberId(memid2);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid2)).findFirst().get();
			Logger.verifyEquals(m.getPlatform().toUpperCase(),AccessSourceEnum.parse(4).getMessage(), "验证getPlatform");	
			
			mchmemberlistBean.setMemberId(memid3);
			mchmemberlistCall.callService();			
			Logger.verifyEquals("200", mchmemberlistCall.getString("code"), "验证code");
			m = mchmemberlistCall.getMchMemberInfoDto().stream().filter(x->x.getMemberId().equals(memid3)).findFirst().get();
			Logger.verifyEquals(m.getPlatform().toUpperCase(),AccessSourceEnum.parse(6).getMessage(), "验证getPlatform");	
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}